package com.mzsx.hessian.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.Gson;
//import com.mzsx.remove.hessian.api.HelloService;
import com.mzsx.remove.hessian.api.HessianService;

@Controller
public class TestContorller {
	@Autowired
	private HessianService testHessianService;
	
//	@Autowired
//	private HelloService testHelloService;
	
	@RequestMapping("hessian.json")
	@ResponseBody 
	//http://localhost:8080/hession/hessian.json
	public String hessianTest(){  
		System.out.println("*******************************************************************");
		System.out.println(testHessianService);
		String model = testHessianService.getHessianModel("uid", "pwd");  
		System.out.println("=======================  : "+model);  
        return model;  
    }
//	@RequestMapping("hello.json")
//	@ResponseBody 
	//http://localhost:8080/hessin/hello.json
//	public String helloTest(){  
//		System.out.println("****************************helloTest***********************************");
//		System.out.println(testHelloService);
//		String model = testHelloService.sayHello("qiang");  
//		System.out.println("=======================  : "+model);  
//        return model;  
//    }
}
